package com.bingxue.edu.common.enums;

import com.bingxue.edu.framework.enums.Dict;
import com.bingxue.edu.framework.enums.DictEnum;
import com.fasterxml.jackson.annotation.JsonValue;
import com.mybatisflex.annotation.EnumValue;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 退班/退课记录状态
 * @author panbo
 * @since 2024/8/1
 */
@Getter
@AllArgsConstructor
@Dict("操作状态")
public enum OperateStatusEnum implements DictEnum<String> {
    VERIFYING("VERIFYING", "审核中", "processing"),
    REFUNDING("REFUNDING", "退款中", "processing"),
    SUCCESS("SUCCESS", "成功", "green"),
    CANCELED("CANCELED", "取消", "default"),
    FAILED("FAILED", "失败", "warning"),
    REVERTED("REVERTED", "已撤销", "warning"),
    ;

    @JsonValue
    @EnumValue
    private final String value;
    private final String label;
    private final String color;
}
